//----------------------------------Include-------------------------------------
#include "mcu.h"
//------------------------------------------------------------------------------

//PA04--TDO     PA05--TDI    PA06--TCK    PA07--TMS    PA08--TRST
//PA03--boot1   PA02--boot0

//--------------------------------Public Func-----------------------------------
void mcu_init_do(void)
{
//periph clock
  
//output
  //PA23  --LED
  HPM_IOC->PAD[IOC_PAD_PA23].FUNC_CTL = IOC_PA23_FUNC_CTL_GPIO_A_23;

  //init and default output
  gpio_set_pin_output_with_initial(HPM_GPIO0,  GPIO_DO_GPIOA,  23,  1);   //0亮1灭
}

//LED
void mcu_led_toggle(void)
{
  gpio_toggle_pin(HPM_GPIO0, GPIO_DO_GPIOA, 23);
}
//------------------------------------EOF---------------------------------------



